package com.powerhua.workflow.logic;

public interface WorkflowManager {
    
    /**
     * 
     * @return 字符串
     */
    public String getProcessDefinitions();

    /**
     * 
     * @param userId
     * @param workflowName
     * @param content
     * @return 字符串
     */
    public String newProcess(String userId, String workflowName,
            String content, String comment);

    /**
     * 
     * @param userId
     * @param workflowName
     * @return 返回字符串
     */
    public String getTasksByUserId(String userId, String workflowName, String state);

    /**
     * 
     * @param userId
     * @param taskId
     * @param isStart
     * @return 返回字符串
     */
    public String getTaskContentByWorkflowId(String userId,
            String taskId, int isStart);

    /**
     * 
     * @param userId
     * @param taskId
     * @param content
     */
    public String executeTask(String userId,
            String taskId, String nextAction, String content, String comment);
    
    /**
     * 
     * @param processDefId
     * @param taskId
     * @return
     */
    public String getProcessDefImage(long processDefId, long taskId);
}
